package com.media.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.media.model.Media;
import com.media.model.Publish;
import com.base.model.R;
import com.media.model.Tag;
import com.media.model.dto.PieDataDto;

import java.io.File;
import java.util.List;

public interface MediaService extends IService<Media> {

    R<String> uploadMedia(String filePathMedia, String filePathCover, Publish publish, String tags);

    boolean judgeContainsMd5(String Md5);

    boolean uploadFileToMinio(String filePath, String mimeType, String bucket, String objectName);

    R<String> disableMedia(String mediaId);

    R<List<Media>> listMedia(Integer page,Integer pageSize,Media media);



    R<String> shelveMedia(String mediaId);

//    R<String> auditAll();

    R<String> updateMedia(Media media);


    File downFileFromMinio(String MD5, String suffix);

    R<Media> getVideoByVideoId(String videoId);

}

